package com.monitor.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 采购订单物料和需求计划物料对应表
 * </p>
 *
 * @author LX
 * @since 2018-09-11
 */
@TableName("erp_clients_orderd")
public class ErpClientsOrderd extends Model<ErpClientsOrderd> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 采购ID
     */
    @TableField("clients_id")
    private Integer clientsId;
    /**
     * 需求ID
     */
    @TableField("orderd_id")
    private Integer orderdId;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getClientsId() {
        return clientsId;
    }

    public void setClientsId(Integer clientsId) {
        this.clientsId = clientsId;
    }

    public Integer getOrderdId() {
        return orderdId;
    }

    public void setOrderdId(Integer orderdId) {
        this.orderdId = orderdId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ErpClientsOrderd{" +
        ", id=" + id +
        ", clientsId=" + clientsId +
        ", orderdId=" + orderdId +
        "}";
    }
}
